<template>
	<view>
		<map scale="14" :latitude="latitude" :longitude="longitude">
		 <!-- <cover-view slot="callout">
		    <cover-view marker-id="1"></cover-view>
		    <cover-view marker-id="2"></cover-view>
		  </cover-view> -->
		</map>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				latitude:"",
				longitude:""
			};
		},
		onLoad() {
			let _this=this
			// uni.createMapContext 
			uni.getLocation({
				 success(res){
					_this.latitude = res.latitude
					_this.longitude = res.longitude
					 // accuracy: 65
					 // errMsg: "getLocation:ok"
					 // horizontalAccuracy: 65
					 // latitude: 30.67485
					 // longitude: 104.06291
					 // console.log(23,res);   
				 }
			})
		}
	}
</script>

<style lang="scss">
page{
	// width: 756rpx;
	// height: 756rpx;
	width: 750rpx;
	height: 750rpx;	
}
map{
	width: 750rpx;
	height: 1210rpx;
	// width: 100%;
	// height:100%;
}
</style>
